<?

$koatuu_table = 'CC_GEO_OBJECT o, CC_GEO_PROPERTY p';

$res = array('name' => '', 'tree' => false);
//dbdebug();

if ($id = gccHuuid(param('init'))) {

	if ($d = datafetch('db_item', $koatuu_table, "o.property_id=p.id AND o.id=$id", 'o.id id, p.koatuu_name name'))
		$res['name'] = $d['name'];

}

header("Content-Type: application/json; charset=utf-8");
print json_encode($res);

exit;
